#ifndef __IMITABLEDATA_H__
#define __IMITABLEDATA_H__
#include "IMITableView.h"
#include <vector>
#include <string>
using std::vector;
using std::string;
using namespace std;
class IMITableData :  public CCTableViewDataSource, public CCTableViewDelegate
{
public:
	virtual bool init();
	virtual void scrollViewDidScroll(CCScrollView* view) {};
    virtual void scrollViewDidZoom(CCScrollView* view) {};
	CCSize getContentSize();
    virtual unsigned int numberOfCellsInTableView(CCTableView *table);
	vector<string> m_data;
	CCSize m_size;
	CCSize m_preSize;

	void ccTouchEnded(CCTouch *pTouch, CCEvent *pEvent);
};

#endif // __IMITABLEDATA_H__